package com.smartum.mpr.business;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.smartum.mpr.dao.ItemImageDao;
import com.smartum.mpr.model.ItemImage;

@Service
public class ItemImageBusiness extends BaseBusiness {

	@Autowired
	private ItemImageDao itemImageDao;

	public ItemImage getItemImage(Long id) {
		return itemImageDao.get(id);
	}

	public void saveItemImage(ItemImage image) {
		itemImageDao.save(image);
	}

	public void removeItemImage(Long id) {
		itemImageDao.delete(id);
	}

}
